let express = require('express');
let router = express.Router();
let fs = require('fs');

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});
router.get('/resume', function(req, res, next) {
  // res.writeHead(200,{'Content-Type':'text/html'})
  fs.readFile('./public/material/resume/index.html','utf-8',function(err,data){
    if(err){
      throw err ;
    }
    res.end(data);
  });

});

module.exports = router;
